package iohomework;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo2 {
    public static void main(String[] args) throws IOException {

        FileOutputStream fos=new FileOutputStream("cxk.dat");
        fos.write(1);
        fos.write(2);
        System.out.println("写入成功");
        fos.close();

    }
}
